#ifndef FORTRESS_PARSERS_H
#define FORTRESS_PARSERS_H
#include <map>
#include "libtcod.hpp"

namespace fortress
{
	class items;

	class parseListen : public ITCODParserListener 
	{
		items * temp;
		std::map<int,items*> * itemMap;
		int i;
	public:
		parseListen();
		std::map<int,items*> * getItems();
//		std::map<int,items*> * readFile(char * filename);
		bool parserNewStruct(TCODParser *parser,const TCODParserStruct *str,const char *name);
		bool parserFlag(TCODParser *parser,const char *name);
		bool parserProperty(TCODParser *parser,const char *name, TCOD_value_type_t type, TCOD_value_t value);
		bool parserEndStruct(TCODParser *parser,const TCODParserStruct *str,const char *name);
		void error(const char *msg);
	};
};

#endif